Skip to content

fix: send failure result when scanner is canceled#10

Merged
kalinjul merged 2 commits into
kalinjul:mainfrom
vlh-mschalter:main
Jun 24, 2026
Merged

fix: send failure result when scanner is canceled#10
kalinjul merged 2 commits into
kalinjul:mainfrom
vlh-mschalter:main

Conversation

@vlh-mschalter

Copy link
Copy Markdown
Contributor

fixes #9

@kalinjul

Copy link
Copy Markdown
Owner

Hi, thanks for your PR!

The behaviour without your patch is the same on iOS and Android in my Tests, when cancelling the Scan, onResult is not called.
The only exception to this is when camera permission is not granted on iOS, this will invoke onResult with a Failure.
I'm willing to change this, but this should be consistent on both platforms again.

@vlh-mschalter

Copy link
Copy Markdown
Contributor Author

@kalinjul you are right. I updated the code for ios to the same logic as android. Please have a look.

Thanks for your work, for this library!

@vlh-mschalter vlh-mschalter changed the title fix: send failure result on android when scanner is canceled fix: send failure result when scanner is canceled Apr 27, 2026
@kalinjul kalinjul merged commit a8ef9f2 into kalinjul:main Jun 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: onResult not called when user cancels the scanner on Android

2 participants